package com.koko.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class OrderTask {

    @Scheduled(cron = "0 0 0 * * ?")
    public void notifyUserToPay() {
        log.info("定时任务已开启");
        // TODO 订单超时提醒
    }
}
